
//市
import 'areas.dart';

class Cities {
  Cities({
    this.code,
    this.name,
    this.children,
  });

  String code;
  String name;
  List<Areas> children;

  factory Cities.fromJson(Map<String, dynamic> json) => Cities(
    code: json["code"],
    name: json["name"],
    children: List<Areas>.from(json["children"].map((x) => Areas.fromJson(x))),
  );

  Map<String, dynamic> toJson() => {
    "code": code,
    "name": name,
    "children": List<dynamic>.from(children.map((x) => x.toJson())),
  };
}